package com.beijiteshop.shop.ui.order.adapter

import com.beijiteshop.shop.R
import com.beijiteshop.shop.databinding.ItemOrderconfirmGoodsBinding
import com.beijiteshop.shop.model.api.response.OrderGood
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/23 10:36
 * @Description 购物车订单确认页面商品列表适配器
 */
class OrderConfirmListAdapter(data: MutableList<OrderGood>) : BaseQuickAdapter<OrderGood,BaseDataBindingHolder<ItemOrderconfirmGoodsBinding>>(
    R.layout.item_orderconfirm_goods,data) {

    override fun convert(
        holder: BaseDataBindingHolder<ItemOrderconfirmGoodsBinding>,
        item: OrderGood
    ) {
        holder.dataBinding?.let {
            it.goods = item
        }
    }
}